package com.dana.friend.service.user;

import com.baomidou.mybatisplus.extension.service.IService;
import com.core.domain.Result;
import com.core.domain.vo.LoginUserVO;
import com.dana.friend.domain.user.User;
import com.dana.friend.domain.user.dto.EditUserDTO;
import com.dana.friend.domain.user.dto.UserDTO;
import com.dana.friend.domain.user.vo.UserVO;

public interface IUserService extends IService<User> {
    void sendCode(UserDTO userSendCodeDTO);

    String codeLogin(String phone, String code);

    boolean logout(String token);

    Result<LoginUserVO> info(String token);

    UserVO detail();

    int edit(EditUserDTO editUserDTO);

    int updateImage(String headImage);
}
